package com.lzb.party.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "user")
public class User {

    private String sname;
    //@JsonIgnore//忽略某个字段，不展示给前端
    private String pass;
    @TableId(type = IdType.AUTO)
    private String snum;
    private String stage;
    private String origin;
    private String birth;

    public User(String pass, String snum) {
        this.pass = pass;
        this.snum = snum;
    }
}
